package com.evaluation.kexingcp.psycho.evaluation.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.evaluation.kexingcp.common.data.datascope.DataScope;
import com.evaluation.kexingcp.psycho.evaluation.sys.entity.EvaluationWarningRecordsEntity;
import com.evaluation.kexingcp.psycho.evaluation.sys.mapper.EvaluationWarningRecordsMapper;
import com.evaluation.kexingcp.psycho.evaluation.sys.service.EvaluationWarningRecordsService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 预警记录
 *
 * @author pig
 * @date 2024-07-12 09:48:22
 */
@Service
public class EvaluationWarningRecordsServiceImpl extends ServiceImpl<EvaluationWarningRecordsMapper, EvaluationWarningRecordsEntity> implements EvaluationWarningRecordsService {

    @Override
    public <E extends IPage<EvaluationWarningRecordsEntity>> E page(E page, Wrapper<EvaluationWarningRecordsEntity> queryWrapper) {
        return baseMapper.selectPageByScope(page, queryWrapper, DataScope.of());
    }

    @Override
    public List<EvaluationWarningRecordsEntity> getVisiterWarningList(EvaluationWarningRecordsEntity evaluationWarningRecords) {
        return baseMapper.selectVisiterWarningList(evaluationWarningRecords);
    }
}